package com.stm.meet.Repository;

import com.stm.meet.Entitys.CardEntity;
import org.springframework.stereotype.Repository;

import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import javax.persistence.TypedQuery;
import java.util.List;

//@Repository
//public class JpaCardRepository implements CardRepository {
//
//    @PersistenceContext
//    private EntityManager em;
//
//
//    @Override
//    public List<CardEntity> getMeetCards(Integer meetId) {
//        TypedQuery<CardEntity> query = em.createQuery("select '*' from 'card' where meet_id = :meetId ",CardEntity.class);
//        query.setParameter("meetId",meetId);
//        return query.getResultList();
//    }
//}
